Change in openvpn[release/2.6]: dco-win: get driver version
A message that is not in the archive (sent off-list or not yet received): gerrit.1696678214000.I1d0d909e7fca3f51b5c848f1a771a989ab040f17@...2715...
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
to review the following change.
Change subject: dco-win: get driver version
......................................................................
dco-win: get driver version
Print dco-win driver version using the new ioctl.
Requires dco-win driver 1.0.0 or newer to work.
---
M src/openvpn/dco_win.c
M src/openvpn/ovpn_dco_win.h
2 files changed, 33 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/67/367/1
src/openvpn/dco_win.c +26 -1
@@ -386,7 +386,32 @@const char *dco_version_string (struct gc_arena *gc) { -return "v0" ; +OVPN_VERSION version; +ZeroMemory (&version,sizeof (OVPN_VERSION )); + +/* try to open device by symbolic name */ +HANDLE h =CreateFile ("\\\\.\\ovpn-dco" ,GENERIC_READ |GENERIC_WRITE , +0 ,NULL ,OPEN_EXISTING ,FILE_ATTRIBUTE_SYSTEM |FILE_FLAG_OVERLAPPED ,NULL ); + +if (h ==INVALID_HANDLE_VALUE ) + { +return "N/A" ; + } + +DWORD bytes_returned =0 ; +if (!DeviceIoControl (h,OVPN_IOCTL_GET_VERSION ,NULL ,0 , + &version,sizeof (version), &bytes_returned,NULL )) + { +CloseHandle (h); +return "N/A" ; + } + +CloseHandle (h); + +struct buffer out =alloc_buf_gc (256 , gc); +buf_printf (&out,"%d.%d.%d" , version.Major, version.Minor, version.Patch); + +return BSTR (&out); }int
src/openvpn/ovpn_dco_win.h +7 -0
@@ -100,6 +100,12 @@LONG MSS ; }OVPN_SET_PEER , *POVPN_SET_PEER ; +typedef struct _OVPN_VERSION { +LONG Major; +LONG Minor; +LONG Patch; +}OVPN_VERSION , *POVPN_VERSION ; +#define OVPN_IOCTL_NEW_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_GET_STATS CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_NEW_KEY CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
@@ -107,3 +113,4 @@#define OVPN_IOCTL_SET_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_START_VPN CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_DEL_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define OVPN_IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I1d0d909e7fca3f51b5c848f1a771a989ab040f17
Gerrit-Change-Number: 367
Gerrit-PatchSet: 1
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
to look at the new patch set (#2).
Change subject: dco-win: get driver version
......................................................................
dco-win: get driver version
Print dco-win driver version using the new ioctl.
Requires dco-win driver 1.0.0 or newer to work.
---
M src/openvpn/dco_win.c
M src/openvpn/ovpn_dco_win.h
2 files changed, 33 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/67/367/2
src/openvpn/dco_win.c +26 -1
@@ -386,7 +386,32 @@const char *dco_version_string (struct gc_arena *gc) { -return "v0" ; +OVPN_VERSION version; +ZeroMemory (&version,sizeof (OVPN_VERSION )); + +/* try to open device by symbolic name */ +HANDLE h =CreateFile ("\\\\.\\ovpn-dco" ,GENERIC_READ |GENERIC_WRITE , +0 ,NULL ,OPEN_EXISTING ,FILE_ATTRIBUTE_SYSTEM |FILE_FLAG_OVERLAPPED ,NULL ); + +if (h ==INVALID_HANDLE_VALUE ) + { +return "N/A" ; + } + +DWORD bytes_returned =0 ; +if (!DeviceIoControl (h,OVPN_IOCTL_GET_VERSION ,NULL ,0 , + &version,sizeof (version), &bytes_returned,NULL )) + { +CloseHandle (h); +return "N/A" ; + } + +CloseHandle (h); + +struct buffer out =alloc_buf_gc (256 , gc); +buf_printf (&out,"%d.%d.%d" , version.Major, version.Minor, version.Patch); + +return BSTR (&out); }int
src/openvpn/ovpn_dco_win.h +7 -0
@@ -100,6 +100,12 @@LONG MSS ; }OVPN_SET_PEER , *POVPN_SET_PEER ; +typedef struct _OVPN_VERSION { +LONG Major; +LONG Minor; +LONG Patch; +}OVPN_VERSION , *POVPN_VERSION ; +#define OVPN_IOCTL_NEW_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_GET_STATS CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_NEW_KEY CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
@@ -107,3 +113,4 @@#define OVPN_IOCTL_SET_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_START_VPN CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_DEL_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define OVPN_IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I1d0d909e7fca3f51b5c848f1a771a989ab040f17
Gerrit-Change-Number: 367
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: flichtenheld.
Hello flichtenheld,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
to look at the new patch set (#3).
Change subject: dco-win: get driver version
......................................................................
dco-win: get driver version
Print dco-win driver version using the new ioctl.
Requires dco-win driver 1.0.0 or newer to work.
---
M src/openvpn/dco_win.c
M src/openvpn/ovpn_dco_win.h
2 files changed, 33 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/67/367/3
src/openvpn/dco_win.c +26 -1
@@ -386,7 +386,32 @@const char *dco_version_string (struct gc_arena *gc) { -return "v0" ; +OVPN_VERSION version; +ZeroMemory (&version,sizeof (OVPN_VERSION )); + +/* try to open device by symbolic name */ +HANDLE h =CreateFile ("\\\\.\\ovpn-dco" ,GENERIC_READ |GENERIC_WRITE , +0 ,NULL ,OPEN_EXISTING ,FILE_ATTRIBUTE_SYSTEM |FILE_FLAG_OVERLAPPED ,NULL ); + +if (h ==INVALID_HANDLE_VALUE ) + { +return "N/A" ; + } + +DWORD bytes_returned =0 ; +if (!DeviceIoControl (h,OVPN_IOCTL_GET_VERSION ,NULL ,0 , + &version,sizeof (version), &bytes_returned,NULL )) + { +CloseHandle (h); +return "N/A" ; + } + +CloseHandle (h); + +struct buffer out =alloc_buf_gc (256 , gc); +buf_printf (&out,"%ld.%ld.%ld" , version.Major, version.Minor, version.Patch); + +return BSTR (&out); }int
src/openvpn/ovpn_dco_win.h +7 -0
@@ -100,6 +100,12 @@LONG MSS ; }OVPN_SET_PEER , *POVPN_SET_PEER ; +typedef struct _OVPN_VERSION { +LONG Major; +LONG Minor; +LONG Patch; +}OVPN_VERSION , *POVPN_VERSION ; +#define OVPN_IOCTL_NEW_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_GET_STATS CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_NEW_KEY CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
@@ -107,3 +113,4 @@#define OVPN_IOCTL_SET_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_START_VPN CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_DEL_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define OVPN_IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I1d0d909e7fca3f51b5c848f1a771a989ab040f17
Gerrit-Change-Number: 367
Gerrit-PatchSet: 3
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset
Attention is currently required from: flichtenheld, stipa.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/367?usp=email )
Change subject: dco-win: get driver version
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I1d0d909e7fca3f51b5c848f1a771a989ab040f17
Gerrit-Change-Number: 367
Gerrit-PatchSet: 3
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: stipa <[email protected]...>
Gerrit-Comment-Date: Sun, 08 Oct 2023 11:08:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 dco-win: get driver version
In reply to a message not in the archiveFrom: Lev Stipakov <[email protected]...>
Print dco-win driver version using the new ioctl.
Requires dco-win driver 1.0.0 or newer to work.
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.6.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/367
This mail reflects revision 3 of this Change. Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>
src/openvpn/dco_win.c +26 -1
@@ -386,7 +386,32 @@const char *dco_version_string (struct gc_arena *gc) { -return "v0" ; +OVPN_VERSION version; +ZeroMemory (&version,sizeof (OVPN_VERSION )); + +/* try to open device by symbolic name */ +HANDLE h =CreateFile ("\\\\.\\ovpn-dco" ,GENERIC_READ |GENERIC_WRITE , +0 ,NULL ,OPEN_EXISTING ,FILE_ATTRIBUTE_SYSTEM |FILE_FLAG_OVERLAPPED ,NULL ); + +if (h ==INVALID_HANDLE_VALUE ) + { +return "N/A" ; + } + +DWORD bytes_returned =0 ; +if (!DeviceIoControl (h,OVPN_IOCTL_GET_VERSION ,NULL ,0 , + &version,sizeof (version), &bytes_returned,NULL )) + { +CloseHandle (h); +return "N/A" ; + } + +CloseHandle (h); + +struct buffer out =alloc_buf_gc (256 , gc); +buf_printf (&out,"%ld.%ld.%ld" , version.Major, version.Minor, version.Patch); + +return BSTR (&out); }int
src/openvpn/ovpn_dco_win.h +7 -0
@@ -100,6 +100,12 @@LONG MSS ; }OVPN_SET_PEER , *POVPN_SET_PEER ; +typedef struct _OVPN_VERSION { +LONG Major; +LONG Minor; +LONG Patch; +}OVPN_VERSION , *POVPN_VERSION ; +#define OVPN_IOCTL_NEW_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_GET_STATS CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_NEW_KEY CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
@@ -107,3 +113,4 @@#define OVPN_IOCTL_SET_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_START_VPN CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_DEL_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define OVPN_IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
[Openvpn-devel] [PATCH applied] Re: dco-win: get driver version
This is a useful addition (as we discussed at the hackathon), for future feature enhancements that require a minimum version of the DCO-WIN driver ("new driver supports old+new openvpn.exe by means of v1 and v2 IOCTLs, but new openvpn.exe has no compat layer for old driver").
Uncrustify complains about ovpn_dco_win.h on commit, because the exclusion list is not applied in our "commit hook" - but this is known and accepted for this file ("import from other project").
I have compile-tested this on Ubuntu/MinGW and ran through GHA, and also done a quick stare-at-code ("does it handle errors, like 'no driver' or 'driver too old for this IOCTL'?") and this all looks good.
Your patch has been applied to the master and release/2.6 branch.
commit e8e5f8a4c4f8e01dc7317ac87a85d3204882d6bf (master) commit c54e1b226e9d6709cdc2b243e6a961a6cd47c7c6 (release/2.6)
Author: Lev Stipakov Date: Sun Oct 8 13:27:55 2023 +0200
dco-win: get driver version
Signed-off-by: Lev Stipakov <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27174.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#4) to the change originally created by stipa. ( http://gerrit.openvpn.net/c/openvpn/+/367?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by plaisthos
Change subject: dco-win: get driver version
......................................................................
dco-win: get driver version
Print dco-win driver version using the new ioctl.
Requires dco-win driver 1.0.0 or newer to work.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27174.html
---
M src/openvpn/dco_win.c
M src/openvpn/ovpn_dco_win.h
2 files changed, 33 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/67/367/4
src/openvpn/dco_win.c +26 -1
@@ -386,7 +386,32 @@const char *dco_version_string (struct gc_arena *gc) { -return "v0" ; +OVPN_VERSION version; +ZeroMemory (&version,sizeof (OVPN_VERSION )); + +/* try to open device by symbolic name */ +HANDLE h =CreateFile ("\\\\.\\ovpn-dco" ,GENERIC_READ |GENERIC_WRITE , +0 ,NULL ,OPEN_EXISTING ,FILE_ATTRIBUTE_SYSTEM |FILE_FLAG_OVERLAPPED ,NULL ); + +if (h ==INVALID_HANDLE_VALUE ) + { +return "N/A" ; + } + +DWORD bytes_returned =0 ; +if (!DeviceIoControl (h,OVPN_IOCTL_GET_VERSION ,NULL ,0 , + &version,sizeof (version), &bytes_returned,NULL )) + { +CloseHandle (h); +return "N/A" ; + } + +CloseHandle (h); + +struct buffer out =alloc_buf_gc (256 , gc); +buf_printf (&out,"%ld.%ld.%ld" , version.Major, version.Minor, version.Patch); + +return BSTR (&out); }int
src/openvpn/ovpn_dco_win.h +7 -0
@@ -100,6 +100,12 @@LONG MSS ; }OVPN_SET_PEER , *POVPN_SET_PEER ; +typedef struct _OVPN_VERSION { +LONG Major; +LONG Minor; +LONG Patch; +}OVPN_VERSION , *POVPN_VERSION ; +#define OVPN_IOCTL_NEW_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_GET_STATS CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_NEW_KEY CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
@@ -107,3 +113,4 @@#define OVPN_IOCTL_SET_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_START_VPN CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_DEL_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define OVPN_IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I1d0d909e7fca3f51b5c848f1a771a989ab040f17
Gerrit-Change-Number: 367
Gerrit-PatchSet: 4
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/367?usp=email )
Change subject: dco-win: get driver version
......................................................................
dco-win: get driver version
Print dco-win driver version using the new ioctl.
Requires dco-win driver 1.0.0 or newer to work.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27174.html
---
M src/openvpn/dco_win.c
M src/openvpn/ovpn_dco_win.h
2 files changed, 33 insertions(+), 1 deletion(-)
src/openvpn/dco_win.c +26 -1
@@ -386,7 +386,32 @@const char *dco_version_string (struct gc_arena *gc) { -return "v0" ; +OVPN_VERSION version; +ZeroMemory (&version,sizeof (OVPN_VERSION )); + +/* try to open device by symbolic name */ +HANDLE h =CreateFile ("\\\\.\\ovpn-dco" ,GENERIC_READ |GENERIC_WRITE , +0 ,NULL ,OPEN_EXISTING ,FILE_ATTRIBUTE_SYSTEM |FILE_FLAG_OVERLAPPED ,NULL ); + +if (h ==INVALID_HANDLE_VALUE ) + { +return "N/A" ; + } + +DWORD bytes_returned =0 ; +if (!DeviceIoControl (h,OVPN_IOCTL_GET_VERSION ,NULL ,0 , + &version,sizeof (version), &bytes_returned,NULL )) + { +CloseHandle (h); +return "N/A" ; + } + +CloseHandle (h); + +struct buffer out =alloc_buf_gc (256 , gc); +buf_printf (&out,"%ld.%ld.%ld" , version.Major, version.Minor, version.Patch); + +return BSTR (&out); }int
src/openvpn/ovpn_dco_win.h +7 -0
@@ -100,6 +100,12 @@LONG MSS ; }OVPN_SET_PEER , *POVPN_SET_PEER ; +typedef struct _OVPN_VERSION { +LONG Major; +LONG Minor; +LONG Patch; +}OVPN_VERSION , *POVPN_VERSION ; +#define OVPN_IOCTL_NEW_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_GET_STATS CTL_CODE(FILE_DEVICE_UNKNOWN, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_NEW_KEY CTL_CODE(FILE_DEVICE_UNKNOWN, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
@@ -107,3 +113,4 @@#define OVPN_IOCTL_SET_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_START_VPN CTL_CODE(FILE_DEVICE_UNKNOWN, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)#define OVPN_IOCTL_DEL_PEER CTL_CODE(FILE_DEVICE_UNKNOWN, 7, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define OVPN_IOCTL_GET_VERSION CTL_CODE(FILE_DEVICE_UNKNOWN, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/367?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I1d0d909e7fca3f51b5c848f1a771a989ab040f17
Gerrit-Change-Number: 367
Gerrit-PatchSet: 4
Gerrit-Owner: stipa <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged